package Z004LiuChengkongZhi;

public class KZwhile {
    public static void main(String[] args) {

        int i = 0;
        while (i < 5){
            System.out.println(i);
            i++;
        }


        int j = 0;
        while(j < 5){
            System.out.println(j);
            j++;
        }

        int k = 0;
        do{
            System.out.println(k);
            k++;
        }while (k<5);

        // 练习 阶乘


    }
}
